home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Tech Arsenal 1
/
Tech Arsenal (Arsenal Computer).ISO
/
tek-02
/
prodpack.zip
/
DB4PPSRC.EXE
/
SETVAR.PRG
< prev
Wrap
Text File
|
1993-05-04
|
1KB
|
34 lines
*' $Header: $
FUNCTION SetVar
PARAMETERS pc_VarName, p__value
*----------------------------------------------------------------------------
* NAME
* SetVar() - Sets the value of a variable
*
* DESCRIPTION
* SetVar() will set the value of a named variable. SetVar()'s
* intention is for use in the debugger. For example, if an expression
* fails due to an EOF condition or a bad macro expansion, SetVar()
* will allow you to set the value and proceed with the program.
*
* PARAMETERS
* pc_VarName = Name of the variable to set. If not already defined,
* the variable will be defined as a PUBLIC.
* p__value = The value to store in the variable.
*
*----------------------------------------------------------------------------
cVarName = pc_VarName
IF TYPE( cVarName ) = "U"
PUBLIC &cVarName
ENDIF
STORE p__value TO &cVarName
RETURN( p__value )
*-- EOF: SetVar( pc_VarName, p__value )
*'----------------------------------------------------------------------------
*' $Log: $
*'----------------------------------------------------------------------------